package demo;

import com.amarsoft.dexpre.ResourceConfig;
import com.amarsoft.dexpre.bean.Transaction;
import com.amarsoft.dexpre.parser.ServerDataParser;

public class Demo2DataParser extends ServerDataParser {
	
	protected Transaction createTransaction(Object receivedData) throws Exception{
		Transaction trans = null;
		byte[] requestBytes = (byte[])receivedData;
		String serviceCode = new String(requestBytes, 5, 20).trim();
		trans = ResourceConfig.getTransactionByServiceCode(serviceCode, deployID);
		return trans;
	}
	public static void main(String[] args) {
		byte[] by="shenqics2222222222222222222sssssssssssssssss".getBytes();
		String a=new String(by, 5, 20);
		System.out.println(a);
	}
	
}
